<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html><head>
<!--Converted with LaTeX2HTML 98.1 release (February 19th, 1998)
originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->


<title>Exponentiation</title>
<meta name="description" content="Exponentiation">
<meta name="keywords" content="htmlatex">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="STYLESHEET" href="acm-00748_files/htmlatex.css">
</head><body lang="EN" bgcolor="#ffffff">

<h1><br clear="ALL"><center><table bgcolor="#0060f0"><tbody><tr><td><b><font size="5" color="#c0ffff">&nbsp;<a name="SECTION0001000000000000000000">
Exponentiation</a>&nbsp;</font></b></td></tr></tbody></table></center>
</h1>

<p>
Problems involving the computation of exact values of very large magnitude
and precision are common. For example, the computation of the national debt
is a taxing experience for many computer systems.

</p><p>
This problem requires that you write a program to compute the exact value of
<i>R</i><sup><i>n</i></sup> where <i>R</i> is a real number (
<!-- MATH: $0.0 < R < 99.999$ -->
0.0 &lt; <i>R</i> &lt; 99.999) and <i>n</i> is an integer such
that 
<!-- MATH: $0 < n \le 25$ -->
<img src="acm-00748_files/748img1.gif" alt="$0 &lt; n \le 25$" height="30" width="88" align="MIDDLE" border="0">.

</p><p>

</p><h2><font color="#0070e8"><a name="SECTION0001001000000000000000">
Input</a>&nbsp;</font>
</h2>
The input will consist of a set of pairs of values for <i>R</i> and <i>n</i>. The <i>R</i> value will occupy columns 1 through 6, and the <i>n</i> value will be in columns 8 and 9.

<p>

</p><h2><font color="#0070e8"><a name="SECTION0001002000000000000000">
Output</a>&nbsp;</font>
</h2>
The output will consist of one line for each line of input giving the exact
value of <i>R</i><sup><i>n</i></sup>. Leading zeros and insignificant trailing zeros should be suppressed in the output.

<p>

</p><h2><font color="#0070e8"><a name="SECTION0001003000000000000000">
Sample Input</a>&nbsp;</font>
</h2>

<p>
</p><pre>95.123 12
0.4321 20
5.1234 15
6.7592  9
98.999 10
1.0100 12
</pre>

<p>

</p><h2><font color="#0070e8"><a name="SECTION0001004000000000000000">
Sample Output</a>&nbsp;</font>
</h2>

<p>
</p><pre>548815620517731830194541.899025343415715973535967221869852721
.00000005148554641076956121994511276767154838481760200726351203835429763013462401
43992025569.928573701266488041146654993318703707511666295476720493953024
29448126.764121021618164430206909037173276672
90429072743629540498.107596019456651774561044010001
1.126825030131969720661201
</pre>

<p>

</p><p>
<br></p><hr>
<address>
<i>Miguel A. Revilla</i>
<br><i>2000-02-09</i>
</address>
</body></html>